<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<form action="{:url('manage/sync_goods')}" method="post" class="form-horizontal">
			<div class="row">
				<div class="form-group">
					<div class="col-sm-offset-1 col-sm-10">
						<table class="table">
							<thead>
								<tr>
									<th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></th>
									<th>名称</th>
									<th>图片</th>
									<th>价格</th>
									<th>重量</th>
									<th>仓库</th>
								</tr>
							</thead>
							<tbody>
								<volist name="list" id="vo">
									<tr>
										<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" {$vo.sync_ever?'checked':''}></td>
										<td>{$vo.name}</td>
										<td><img src="{$vo.goods_image}" alt="" style="max-width: 60px"></td>
										<td>{$vo.apiprice}</td>
										<td>{$vo.weight}</td>
										<td>{$vo.store_name}</td>
									</tr>
								</volist>
							</tbody>
						</table>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<input type="hidden" name="id" value="{$id}">
						<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('确认')}</button>
					</div>
				</div>

			</div>

		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>